<ui:composition template="/templates/commonbase.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
      
 <ui:define name="content">

 <div id="regfrm">
  	<table>
  		<tr>
  			<td class="lbl wid1_5">#{msgs.lblfirstname}</td>
  			<td class="wid4_5"><h:inputText id="frstnm" required="true" value="#{regbean.firstName}" requiredMessage="#{msgs.reqfldntprvd}" /></td>
  			<td><h:message for="frstnm"/></td>
  			<td class="lbl wid1_5">#{msgs.lbllastname}</td>
  			<td class="wid4_5"><h:inputText id="lstnm" required="true" value="#{regbean.lastName}" requiredMessage="#{msgs.reqfldntprvd}" /></td>
  			<td><h:message for="lstnm"/></td>
  		</tr>
	  	<tr>
	  		<td class="lbl wid1_5">#{msgs.uiemailprompt}</td> 
	    	<td class="wid4_5"><h:inputText  id="email" type="text" required="true" requiredMessage="#{msgs.reqfldntprvd}" validatorMessage="#{msgs.invmail}" value="#{regbean.emailId}">
	    		<f:validateRegex pattern="\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b"></f:validateRegex>
	  		</h:inputText></td>
	    	<td><h:message for="email"/></td>
	    	<td></td>
	    	<td></td>
	    </tr>
	    <tr>
	    	<td class="lbl wid1_5">Password</td>
	      	<td class="wid4_5"><h:inputSecret  id="pwd" type="text" required="true" requiredMessage="#{msgs.reqfldntprvd}" value="#{regbean.password}"/></td>
	      	<td><h:message for="pwd"/></td>
	        <td></td>
	    	<td></td>
	    </tr>  
	    <tr>
	    	<td></td>
	   		<td align="right">
	    		<h:commandButton action="#{regbean.register}" value="Register">
	    		</h:commandButton>
	    	</td>
	    	<td></td>
	    	<td></td>
	    	<td></td>
	    </tr>     
    </table>
    </div>
   </ui:define>
</ui:composition>
